﻿<%@ Page Title="Catalog" Language="C#" MasterPageFile="~/ManagerView.master" AutoEventWireup="true"
    CodeBehind="PageCatalog.aspx.cs" Inherits="BestBuy.PageAdmin.PageCatalog" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <div class="category">
        <table width="100%" align="center">
            <tr>
                <td colspan="2" class="td_center">
                    <h1>
                        <asp:Label ID="lbInFo" runat="server" Text="Product Category"></asp:Label>
                    </h1>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="td_center">
                    <asp:DropDownList ID="cbSearch" runat="server" CssClass="cbSearch" AppendDataBoundItems="True"
                        Width="400px">
                        <asp:ListItem Value="" Text="---No Catalogy---" />
                    </asp:DropDownList>
                    <ajaxToolkit:ListSearchExtender ID="lseSearch" PromptCssClass="ListSearchExtender"
                        runat="server" QueryTimeout="0" PromptPosition="Top" TargetControlID="cbSearch">
                    </ajaxToolkit:ListSearchExtender>
                    <asp:Button ID="btnGo" runat="server" CssClass="style_button" Text="Go" OnClick="btnGo_Click" />
                </td>
            </tr>
            <tr>
                <td valign="top" width="300px" align="left">
                    <asp:TreeView ID="tvCategories" runat="server" ShowLines="True" Font-Size="Medium"
                        OnSelectedNodeChanged="tvCategories_SelectedNodeChanged">
                        <HoverNodeStyle CssClass="treeviewhover" />
                        <SelectedNodeStyle CssClass="treeviewselected" />
                    </asp:TreeView>
                </td>
                <td valign="top" width="600px" style="margin-right:50px;">
                    <table width="100%" align="center">
                        <tr>
                            <td class="td_right">
                                <asp:Label ID="lbName" runat="server" Text="Name : "></asp:Label>
                            </td>
                            <td class="td_left">
                                <asp:TextBox ID="txtName" runat="server" Width="250px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="td_right">
                                <asp:Label ID="Label3" runat="server" Text="Parent : "></asp:Label>
                            </td>
                            <td class="td_left">
                                <asp:DropDownList ID="cbParent" runat="server" Width="265px" AppendDataBoundItems="True">
                                    <asp:ListItem Value="" Text="---No Parent---" />
                                </asp:DropDownList>
                                <ajaxToolkit:ListSearchExtender ID="lseCatalog" PromptCssClass="ListSearchExtender"
                                    runat="server" QueryTimeout="0" PromptPosition="Top" TargetControlID="cbParent">
                                </ajaxToolkit:ListSearchExtender>
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                            </td>
                            <td align="left" class="style3">
                                <asp:HyperLink ID="hlAdd" runat="Server" Text="Add" CssClass="style_button" NavigateUrl="~/PageAdmin/PageAddCatalog.aspx"></asp:HyperLink>
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="btnUpdate" runat="server" Text="Update" CssClass="style_button"
                                    Width="70px" OnClick="btnUpdate_Click" />
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="btnDelete" runat="server" CssClass="style_button" Text="Delete"
                                    Width="70px" OnClick="btnDelete_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td class="td_left">
                                <asp:Panel ID="pnThongBao" runat="server">
                                    <asp:Label ID="lbThongBao" runat="server"></asp:Label>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <br />
        <br />
        <br />
        <br />
    </div>
</asp:Content>
